package com.ruoyi.tuanzhang.utils;

import com.alibaba.excel.EasyExcel;
import com.alibaba.excel.ExcelWriter;
import com.alibaba.excel.write.metadata.WriteSheet;
//import com.ruoyi.tuanzhang.bean.excelDto.*;
import org.springframework.stereotype.Component;

import java.text.SimpleDateFormat;

/**
 * 处理成excel表
 * */
@Component
public class SelfExcelUtils {

    private static SimpleDateFormat sdf = new SimpleDateFormat("yyyy年MM月DD日");

    /**
     * 生成货盘表
     * */
//    public static void getWillDarenList (List<SelfAddDarenExcelDto> addDarenExcelDtoList, String basePath){
//        String fileName = basePath + "可加达人//" + sdf.format(new Date()) + "达人信息.xlsx";
//        try (ExcelWriter excelWriter = EasyExcel.write(fileName).build()) {
//            WriteSheet baseSheet = EasyExcel.writerSheet(0, "达人列表").head(SelfAddDarenExcelDto.class).build();
//            excelWriter.write(addDarenExcelDtoList, baseSheet);
//        }
//    }
}
